package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {
    long findCountByOrderDate(Date orderDate);

    void editNumberByOrderDate(OrderSetting orderSetting);

    void add(OrderSetting orderSetting);

    List<OrderSetting> getOrdersettingByMonth(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

    long findNumberByDate(Date orderDate);

    void editNumberByDate(OrderSetting orderSetting);

    //根据预约时间查询当前日期是否设置
    OrderSetting findByOrderDate(Date date);

    void editReservationsByOrderDate(OrderSetting orderSetting);

    Page<Map> findByCondition(Map map);

    Map findById(Integer id);
}
